 package com.bmps.springcloud.insuredmicroservice.model.accept.resquest;

 import org.apache.commons.lang3.builder.EqualsBuilder;
 import org.apache.commons.lang3.builder.HashCodeBuilder;

 import java.io.Serializable;
 import java.math.BigDecimal;

 /**
  *  @author lyw
  *  @date 2019/07/24
  */
 public class InvAccRatioModel implements Serializable {

	 private String insuAccNo;

	 private BigDecimal investRate;

     public String getInsuAccNo() {
         return insuAccNo;
     }

     public void setInsuAccNo(String insuAccNo) {
         this.insuAccNo = insuAccNo;
     }

     public BigDecimal getInvestRate() {
         return investRate;
     }

     public void setInvestRate(BigDecimal investRate) {
         this.investRate = investRate;
     }

     @Override
     public boolean equals(Object o) {
         if (this == o) {
             return true;
         }

         if (o == null || getClass() != o.getClass()) {
             return false;
         }

         InvAccRatioModel that = (InvAccRatioModel) o;

         return new EqualsBuilder()
                 .append(insuAccNo, that.insuAccNo)
                 .append(investRate, that.investRate)
                 .isEquals();
     }

     @Override
     public int hashCode() {
         return new HashCodeBuilder(17, 37)
                 .append(insuAccNo)
                 .append(investRate)
                 .toHashCode();
     }

     @Override
     public String toString() {
         return "InvAccRatioModel{" +
                 "insuAccNo='" + insuAccNo + '\'' +
                 ", investRate=" + investRate +
                 '}';
     }
 }
